﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace WpfApp1
{
    //public class FrameworkElement : TextBox
    //{
    //    public static readonly DependencyProperty nameProperty;

    //    static FrameworkElement()
    //    {
    //        FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(new Thickness(), FrameworkPropertyMetadataOptions.AffectsMeasure);

    //        nameProperty = DependencyProperty.Register("testName",typeof(string),typeof(FrameworkElement),new PropertyMetadata("Learing Hard",OnValueChanged));
    //    }

    //    public string testName
    //    {
    //        get { return (string)GetValue(nameProperty); }

    //        set { SetValue(nameProperty, value); }
    //    }

    //    private static void OnValueChanged(DependencyObject dpobj,DependencyPropertyChangedEventArgs e)
    //    {
    //        //
    //        MessageBox.Show("FrameworkElement value change!");
    //    }
    //}
}
